package com.qf.personal.controller;


import com.qf.common.base.result.RespResult;
import com.qf.personal.service.SignService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "签到API")
@RestController
@RequestMapping("/sign")
public class SigmController {
    @Resource
    private SignService signService;

    @PutMapping("/add")
    @ApiOperation("签到")
    @ApiResponses({@ApiResponse(code = 200, message = "成功")})
    public RespResult<String> sign(int id) {

        return signService.add(id);
    }

   /* @PutMapping("/select")
    @ApiOperation("查询所有类型")
    @ApiResponses({@ApiResponse(code = 200, message = "成功")})
    public IPage<Sign> selectById(@RequestParam(defaultValue = "1") int page, @RequestParam(defaultValue = "10")int size, int id){
        return signService.list(page,size,id);
    }*/

}
